package com.zr.common.emailUtil;

import javax.mail.*;

/**
 * @author shihh
 * @create 2019-11-22
 * @classRemarks 身份认证实体类
 */
public class MailAuthenticator extends Authenticator {
    String userName=null;
    String password=null;
    public MailAuthenticator(){
    }
    public MailAuthenticator(String username, String password) {
    this.userName = username;
    this.password = password;
    }
    protected PasswordAuthentication getPasswordAuthentication(){
        return new PasswordAuthentication(userName, password);
    }
}
